package sddengine;

import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;

public class Collision {
	
	public Collision() {
		
	}
	
	public boolean collidesWith(AnimatedSprite sprite, Shape rect) {
        boolean isColliding=false;

        Rectangle r1 = new Rectangle(sprite.x,sprite.y,sprite.width,sprite.height);
        
        
        
        if(rect.intersects(r1)) {
            isColliding = true;
        }

        return isColliding;
    }
}
